/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const InformationRouterMap = {
  id: 44,
  path: '/information',
  component: Layout,
  name: '资讯管理',
  redirect: '/information/list',
  meta: {title: '资讯管理', icon: 'information', power: 'information'},
  showMode: 'DEFAULT',
  children: [
    {
      id: 45,
      path: 'list',
      name: '新闻列表',
      component: resolve => require(['@/views/information/news/list'], resolve),
      meta: {title: '新闻列表', icon: 'newslist', power: 'information.newslist.info'},
      children: [
        {
          path: 'info',
          name: '新闻列表-新闻详情',
          component: resolve => require(['@/views/information/news/info.vue'], resolve),
          meta: {title: '新闻详情', power: 'information.newslist.info'},
          hidden: true
        }, {
          path: 'modify',
          name: '新闻列表-新闻-新增 / 修改',
          component: resolve => require(['@/views/information/news/modify.vue'], resolve),
          meta: {title: '新增 / 修改', power: 'information.newslist.modify'},
          hidden: true
        }
      ]
    }, {
      id: 160,
      path: 'newsType',
      name: '新闻类型',
      component: resolve => require(['@/views/information/news/type.vue'], resolve),
      meta: {title: '新闻类型', icon: 'newslist', power: 'information.newslist'},
      children: [
        {
          path: 'list',
          name: '新闻类型-新闻列表',
          component: resolve => require(['@/views/information/news/index'], resolve),
          meta: {title: '新闻列表', power: 'information.newslist.info'},
          hidden: true
        }, {
          path: 'info',
          name: '新闻类型-新闻详情',
          component: resolve => require(['@/views/information/news/info.vue'], resolve),
          meta: {title: '新闻详情', power: 'information.newslist.info'},
          hidden: true
        }, {
          path: 'modify',
          name: '新闻类型-新增 / 修改',
          component: resolve => require(['@/views/information/news/modify.vue'], resolve),
          meta: {title: '新增 / 修改', power: 'information.newslist.modify'},
          hidden: true
        }
      ]
    }, {
      id: 211,
      path: 'display',
      name: '企业展示',
      component: resolve => require(['@/views/information/display/index.vue'], resolve),
      meta: {title: '企业展示', icon: 'display', power: 'information.display'},
      children: [
        {
          path: 'modify',
          name: '新增 / 修改',
          component: resolve => require(['@/views/information/display/modify.vue'], resolve),
          meta: {title: '新增 / 修改', power: 'information.display.modify'},
          hidden: true
        }
      ]
    }, {
      id: -1,
      path: 'update_log_detail',
      name: '更新日志查看',
      component: resolve => require(['@/views/information/update/logs.vue'], resolve),
      meta: {title: '更新日志', icon: 'update', power: 'information.update_log_detail'}
    }, {
      id: 51,
      path: 'update_log',
      name: '更新日志',
      component: resolve => require(['@/views/information/update'], resolve),
      meta: {title: '更新日志', icon: 'update', power: 'information.update_log'},
      hidden: true,
      children: [
        {
          path: 'modify',
          name: '添加 / 修改',
          component: resolve => require(['@/views/information/update/modify.vue'], resolve),
          meta: {title: '添加 / 修改', power: 'information.update_log.modify'},
          hidden: true
        }
      ]
    }, {
      id: 49,
      path: 'instructions',
      name: '使用帮助',
      component: resolve => require(['@/views/informationView/instructions.vue'], resolve),
      meta: {title: '使用帮助', icon: 'instructions', power: 'information.instructions'}
    }, {
      id: 228,
      path: 'helpline',
      name: '服务热线',
      component: resolve => require(['@/views/information/helpline'], resolve),
      meta: { title: '服务热线', icon: 'feedback', power: 'information.helpline' }
    }, {
      id: 50,
      path: 'about_us',
      name: '关于我们',
      component: resolve => require(['@/views/informationView/about_us.vue'], resolve),
      meta: {title: '关于我们', icon: 'about_us', power: 'information.about_us'}
    }, {
      id: 49,
      path: 'instructions_edit',
      name: '使用帮助编辑',
      component: resolve => require(['@/views/information/instructions.vue'], resolve),
      meta: {title: '使用帮助', icon: 'instructions', power: 'information.instructions_edit'},
      hidden: true
    }, {
      id: 50,
      path: 'about_us_edit',
      name: '关于我们编辑',
      component: resolve => require(['@/views/information/about_us.vue'], resolve),
      meta: {title: '关于我们', icon: 'about_us', power: 'information.about_us_edit'},
      hidden: true
    }
  ]
}

export default InformationRouterMap;
